home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 50
/
Volume 50 - JOGO DISK .iso
/
Games
/
marchzuma.swf
/
scripts
/
DefineSprite_587
/
frame_1
/
DoAction.as
Wrap
Text File
|
2007-10-01
|
1KB
|
33 lines
function connectSWHiscore(functionType, hiscoreID, scoreNum)
{
this.createEmptyMovieClip("httpObj",this.httpObjDepth);
switch(functionType)
{
case "view":
this.httpObj.gameid = this.gameID;
this.httpObj.hiscoreid = hiscoreID;
this.httpObj.getURL(this.viewHURL,"_blank","POST");
break;
case "submit":
this.recieve_lv = new LoadVars();
this.recieve_lv.hiscoreConnector = this;
this.recieve_lv.onLoad = function(isSuccess)
{
if(isSuccess)
{
this.hiscoreConnector.httpObj.tempID = this.tempID;
this.hiscoreConnector.httpObj.getURL(this.hiscoreConnector.submitGetHURL,"_blank","GET");
}
};
this.submit_lv = new LoadVars();
this.submit_lv.score = scoreNum;
this.submit_lv.gameid = this.gameID;
this.submit_lv.hiscoreid = hiscoreID;
this.submit_lv.sendAndLoad(this.submitPostHURL,this.recieve_lv,"POST");
}
}
this.swc_mc._visible = false;
this.viewHURL = "http://hiscore.shockwave.co.jp/rank/member/control/listscore.php";
this.submitPostHURL = "http://hiscore.shockwave.co.jp/rank/member/control/maketemp.php";
this.submitGetHURL = "http://hiscore.shockwave.co.jp/rank/member/control/logintemp.php";